home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
wdj0697.zip
/
SDKANN.ZIP
/
SOURCE.ZIP
/
EDITSRCH.C
< prev
next >
Wrap
Text File
|
1995-08-31
|
2KB
|
70 lines
/*
a) start dialog, pass data structure to it
*/
static BOOL OnPathEditCommand(HWND Dialog, UINT Notify,
int ControlId, HWND Control)
{
if(ControlId == IDCANCEL)
{
EndDialog(Dialog, Always = CANCEL);
return FALSE;
}
else if(ControlId == ID_SKIP)
{
EndDialog(Dialog, SKIP);
if(IsDlgButtonChecked(Dialog, ID_STOPASKING))
Always = CANCEL;
return FALSE;
}
else if(ControlId == ID_REPLACE)
{
EndDialog(Dialog, REPLACE);
if(IsDlgButtonChecked(Dialog, ID_STOPASKING))
Always = REPLACE;
}
else if(ControlId == ID_APPEND)
{
EndDialog(Dialog, APPEND);
if(IsDlgButtonChecked(Dialog, ID_STOPASKING))
Always = APPEND;
}
return FALSE;
}
BOOL CALLBACK __export WDJ_PathEditDialog(HWND Dialog, UINT Message,
WPARAM Param1, LPARAM Param2)
{
if(Message == WM_INITDIALOG)
{
return TRUE;
}
else if(Message == WM_COMMAND)
{
return DialogCommand(OnPathEditDialogCommand,
Dialog, Param1, Param2);
}
return FALSE; /* FALSE == we didn't process msg */
}
int WDJ_PathEdit(const char *InPath, char *OutPath, int MaxLen)
{
}
int WDJ_PathFind(const char *InPath, const char *File, char *OutPath, int Maxlen)
{
int Result = -1; /* Assume failure */
/* sanity check */
if(InPath && *InPath)
{
while(*InPath)
{
}
}
}